//完整引入element-plus资源
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import { createApp } from 'vue'
import pinia from './stores'

import App from './App.vue'
import router from './router'

//初始化esri的apikey
import esriConfig from '@arcgis/core/config.js'
esriConfig.apiKey =
  'AAPTxy8BH1VEsoebNVZXo8HurMjHDpeDX27NpUyh-lmpJILHB-ouqPhXpkY9RH8HqXvOZyUg4CFm90rgy3cKaxZ8C0dBcIN4dh2NWmpQY3_8YpzeUH6Z5QMtbs9WfYLrQMxz5zeGbxOqNgg2BpgsCHmIphdjsggekiZERi042OyL_Tud8c1lOKoJLVlQGzOcApP198S6v6YBbEgvWeq0D0BCJiuWEsaZ5CAft8XWPxhXvh_gwysCLIG4jEgN7EqR0rB_AT1_3ialG1eg'
//初始化esri语言
import * as intl from '@arcgis/core/intl.js'
intl.setLocale('zh-CN')

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(ElementPlus)
app.use(pinia)
app.use(router)

app.mount('#app')
